# -*- coding: utf-8 -*-
# @Time    : 2022/8/6 20:04
# @Author  : Weijian Yi
# @File    : pagination.py
# @Software: PyCharm
from rest_framework.pagination import PageNumberPagination

class MyPageNumberPagination(PageNumberPagination):
    page_size = 10   # default page size
    page_size_query_param = 'size'  # ?page=xx&size=??
    max_page_size = 2000 # max page size